package 标准代码;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * Created by 5406160@qq.com on LiBoWen 李博闻.
 *
 * @ClassName : 字符流一次一个字节数组复制文件
 * @Author : 54061
 * @Date: 2022/2/13 20:26
 */
public class 字符流一次一个字节数组复制文件 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("");
        FileOutputStream fos = new FileOutputStream("");

        byte[] bys = new byte[1024];
        int len;
        while ((len=fis.read(bys))!= -1){
            fos.write(bys,0,len);
        }
        fis.close();
        fos.close();
    }
}
